package com.hzvtc.bosswang.managecommon.domain;


import java.util.HashMap;

public class AjaxResult extends HashMap<String,Object> {
    public static final String CODE_TAG="code";
    public static final String MSG_TAG="message";
    public static final String DATA_TAG="data";

    public AjaxResult(){}

    public AjaxResult(int code,String message){
        super.put(CODE_TAG,code);
        super.put(MSG_TAG,message);
    }

    public AjaxResult(int code,String message,Object data){
        super.put(CODE_TAG,code);
        super.put(MSG_TAG,message);
        if (data != null) {
            super.put(DATA_TAG,data);
        }
    }

}
